import { PureComponent } from 'react'

type props = {
  text: string
}

class ChildA extends PureComponent<props> {
  render() {
    console.log('ChildA 的render方法执行了')
    return (
      <div className="childA">
        子组件A的内容：
        {this.props.text}
      </div>
    )
  }
}

export default ChildA
